package com.tanhua.dubbo.api;

import com.tanhua.model.domain.mysql.Answer;
import com.tanhua.model.domain.mysql.Option;
import com.tanhua.model.domain.mysql.QuestionList;

import java.util.List;

public interface SoulApi {

    /**
     * 查询soul测试题
     *
     * @param userId
     * @return
     */
    List<QuestionList> getQuestionList(Long userId);

    /**
     * 查询选项by ids
     *
     * @param ids
     * @return
     */
    List<Option> getOptionsById(List ids);

    /**
     * 保存答案,返回报告id
     *
     * @param userId
     * @param questionId
     * @param optionIdList
     * @return
     */
    String getReportId(Long userId, String questionId, List<String> optionIdList);

    /**
     * 查询报告
     *
     * @param reportId
     * @return
     */
    Answer getReport(String reportId);
}
